package com.yuchuang.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author:cy Date: 2023-06-14-13:14
 * Description:
 */
@Data
public class CommodityDto {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("商品编码")
    private String commodityCode;
    @ApiModelProperty("商品名称")
    private String commodityName;
    @ApiModelProperty("商品价格")
    private Double commodityPrice;
    @ApiModelProperty("商品图片")
    private String commodityImage;
    @ApiModelProperty("商品数量")
    private Integer commodityNumber;
    @ApiModelProperty("商品描述      富文本")
    private String commodityDescribe;
    @ApiModelProperty("商品状态")
    private Integer commodityState;
    @ApiModelProperty("商品分类Id")
    private Integer commodityClassId;
    @ApiModelProperty("商品规格ID")
    private Integer commoditySpecId;
    @ApiModelProperty("商品品牌Id")
    private Integer commodityBrandId;
    @ApiModelProperty("商品店铺Id")
    private Integer commodityShopId;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimer;
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTimer;

    @ApiModelProperty("商品分类名称")
    private String commodityClassName;
    @ApiModelProperty("商品规格名称")
    private String commoditySpecName;
    @ApiModelProperty("商品品牌名称")
    private String commodityBrandName;
    @ApiModelProperty("商品店铺名称")
    private String commodityShopName;
    @ApiModelProperty("商品状态名称")
    private String commodityStateName;
}
